<template>
  <el-button type="primary" @click="run" :disabled="loading" :loading="loading">
    <slot></slot>
  </el-button>
</template>
<script setup>
import { useLoad } from './useLoad'
const props = defineProps(['click'])
const { loading, run } = useLoad(props.click)

</script>